import { dyjHttp as http } from '@/services/http';
import type { ListResult } from '@/types/api/common';
import type { TeamItem, TeamListParamsDto, MonitorListItem, MonitorListDto, MonitorGroupTitleItem, MonitorUserNameItem, TeamOperationLogItem } from '@/types/api/crm-dyj/team';

/** 获取团队列表 */
export const getList = (params: TeamListParamsDto) => http<ListResult<TeamItem>>({ url: '/api/admin/team_management/team_list', method: 'get', params });
/** 获取大赢加团队监控抖音号列表 */
export const getMonitorList = (params: MonitorListDto) => http<ListResult<MonitorListItem>>({ url: '/api/admin/team_management/team_monitor_list', params });
/** 获取大赢加团队小组列表 */
export const getMonitorTitleList = (data: { team_id: string }) =>
  http<ListResult<MonitorGroupTitleItem>>({ url: '/api/admin/team_management/team_monitor_title_list', method: 'post', data });
/** 获取大赢加团队成员列表 */
export const getMonitorMemberList = (data: { team_id: string }) =>
  http<ListResult<MonitorUserNameItem>>({ url: '/api/admin/team_management/team_monitor_member_list', method: 'post', data });
/** 获取大赢加团队成员操作日志列表 */
export const getMonitorLogList = (params: { account_id: number }) =>
  http<ListResult<TeamOperationLogItem>>({ url: '/api/admin/team_management/team_monitor_operation_log', method: 'get', params });
